package com.cloudlinkscm.base.authcenter;

import com.cloudlinkscm.base.authcenter.model.dto.UserAccountCreateDto;
import com.cloudlinkscm.base.authcenter.model.dto.UserAccountInfoDto;
import com.cloudlinkscm.base.authcenter.service.UserAccountRemoteService;
import com.cloudlinkscm.loms.framework.core.pojo.RestfulApiResponse;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.stereotype.Component;

/**
 * Created by sin on 2017/8/4.
 */
@FeignClient(name = "auth-center-provider", path = UserAccountClient.PATH, fallback = UserAccountClient.HystrixClient.class)
public interface UserAccountClient extends UserAccountRemoteService {

	@Component
	class HystrixClient implements UserAccountClient {

		@Override
		public RestfulApiResponse<UserAccountInfoDto> create(UserAccountCreateDto dto) {
			return null;
		}
	}
}
